package com.example.databasepj.entity;

import lombok.Data;
@Data
public class DishEntity {
    private int dish_id;
    private int merchant_id;
    private String dish_category;
    private String dish_name;
    private byte[] dish_image; // 使用byte数组存储BLOB数据
    private float price;
    private String description;
    private String ingredient;
    private String nutritionInfo;
    private String allergen;
    private int isSignatureDish;

    public DishEntity(int merchant_id, String dish_category, String dish_name) {
        this.merchant_id = merchant_id;
        this.dish_category = dish_category;
        this.dish_name = dish_name;
    }

    public DishEntity(int dish_id, int merchant_id, String dish_category, String dish_name, float price, int isSignatureDish) {
        this.dish_id = dish_id;
        this.merchant_id = merchant_id;
        this.dish_category = dish_category;
        this.dish_name = dish_name;
        this.price = price;
        this.isSignatureDish = isSignatureDish;
    }

    public DishEntity(int dish_id, int merchant_id, String dish_category, String dish_name, byte[] dish_image, float price, String description, String ingredient, String nutritionInfo, String allergen, int isSignatureDish) {
        this.dish_id = dish_id;
        this.merchant_id = merchant_id;
        this.dish_category = dish_category;
        this.dish_name = dish_name;
        this.dish_image = dish_image;
        this.price = price;
        this.description = description;
        this.ingredient = ingredient;
        this.nutritionInfo = nutritionInfo;
        this.allergen = allergen;
        this.isSignatureDish = isSignatureDish;
    }

    public int getDish_id() {
        return dish_id;
    }

    public void setDish_id(int dish_id) {
        this.dish_id = dish_id;
    }

    public int getMerchant_id() {
        return merchant_id;
    }

    public void setMerchant_id(int merchant_id) {
        this.merchant_id = merchant_id;
    }

    public String getDish_category() {
        return dish_category;
    }

    public void setDish_category(String dish_category) {
        this.dish_category = dish_category;
    }

    public String getDish_name() {
        return dish_name;
    }

    public void setDish_name(String dish_name) {
        this.dish_name = dish_name;
    }

    public byte[] getDish_image() {
        return dish_image;
    }

    public void setDish_image(byte[] dish_image) {
        this.dish_image = dish_image;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIngredient() {
        return ingredient;
    }

    public void setIngredient(String ingredient) {
        this.ingredient = ingredient;
    }

    public String getNutritionInfo() {
        return nutritionInfo;
    }

    public void setNutritionInfo(String nutritionInfo) {
        this.nutritionInfo = nutritionInfo;
    }

    public String getAllergen() {
        return allergen;
    }

    public void setAllergen(String allergen) {
        this.allergen = allergen;
    }

    public int isSignatureDish() {
        return isSignatureDish;
    }

    public void setSignatureDish(int signatureDish) {
        isSignatureDish = signatureDish;
    }
}
